﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucMenu.ascx.cs" Inherits="Admin_ucControl_ucMenu" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%--<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
</asp:ToolkitScriptManager>--%>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
            <div>
                <a id="A1" href="../NewMenu.aspx" runat="server">Add New Menu</a>
            </div>
            <br />
            <asp:Accordion ID="Accordion1" runat="server" OnItemDataBound="Accordion1_ItemDataBound"
                SelectedIndex="0" HeaderCssClass="menuHorhead" HeaderSelectedCssClass="menuHor"
                ContentCssClass="menuHorContent" AutoSize="None" FadeTransitions="true" TransitionDuration="250"
                FramesPerSecond="40" RequireOpenedPane="false" SuppressHeaderPostbacks="true">
                <Panes>
                    <asp:AccordionPane ID="AccordionPane1" runat="server" HeaderCssClass="accordionHeader"
                        headerselectedcssclass="accordionHeaderSelected" ContentCssClass="accordionContent">
                        <Header>
                            <%# Eval("MenuName") %>
                        </Header>
                        <Content>
                            <%# Server.HtmlDecode(Eval("ListMenu").ToString()) %>
                        </Content>
                    </asp:AccordionPane>
                </Panes>
                <HeaderTemplate>
                    <p style="color: Black; font-weight: bold; font-size: 14px">
                        <%# Eval("MenuName") %></p>
                </HeaderTemplate>
                <ContentTemplate>
                    <div>
                        <asp:Label ID="Label1" runat="server" Text='<%# Server.HtmlDecode(Eval("ListMenu").ToString())%>'></asp:Label>
                        <br />
                        <asp:HyperLink ID="hyp" runat="server" Text="Edit" NavigateUrl='<%# "~/Admin/NewMenu.aspx?id=" + Eval("IDMenu")%>'></asp:HyperLink>
                    </div>
                </ContentTemplate>
            </asp:Accordion>
        </td>
    </tr>
</table>
